home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2004 October / The Sunday Times - The Month 2004-10.iso / pc / assets / bespoke / feature / movies / section6.swf / scripts / frame_1 / DoAction.as
Text File  |  2004-09-05  |  21KB  |  713 lines

  1. function monitorLoad(what)
  2. {
  3.    var _loc1_ = what;
  4.    if(_loc1_.sound.getBytesTotal() == _loc1_.sound.getBytesLoaded())
  5.    {
  6.       _loc1_.sound.stop();
  7.       _loc1_.sound.start();
  8.       FeatureUnit9.removeInterval(_loc1_.intervalID);
  9.    }
  10. }
  11. _global.FeatureUnit9 = {};
  12. FeatureUnit9.utils = {};
  13. FeatureUnit9.utils.over = function(clip)
  14. {
  15.    if(clip.hitTest(_level0._xmouse,_level0._ymouse,false))
  16.    {
  17.       return true;
  18.    }
  19.    return false;
  20. };
  21. FeatureUnit9.utils.lingoRoll = function()
  22. {
  23.    if(FeatureUnit9.runtime)
  24.    {
  25.       getUrl("lingo: cursor 280", "");
  26.    }
  27. };
  28. FeatureUnit9.utils.lingoRollOut = function()
  29. {
  30.    if(FeatureUnit9.runtime)
  31.    {
  32.       getUrl("lingo: cursor -1", "");
  33.    }
  34. };
  35. FeatureUnit9.utils.getOsInfo = function()
  36. {
  37.    var _loc1_ = {};
  38.    _loc1_.maxSounds = 6;
  39.    switch(system.capabilities.os)
  40.    {
  41.       case "Windows XP":
  42.          break;
  43.       case "Windows 2000":
  44.          break;
  45.       case "Windows NT":
  46.          break;
  47.       case "Windows 98/ME":
  48.          break;
  49.       case "Windows 95":
  50.          break;
  51.       case "MacOS":
  52.    }
  53.    return _loc1_;
  54. };
  55. _global.lingo = function(str)
  56. {
  57.    getURL("lingo:" + str,"");
  58. };
  59. fullscreenOpen = function()
  60. {
  61.    lingo("FeatureUnit9FullscreenOpen()");
  62. };
  63. fullscreenClose = function()
  64. {
  65.    lingo("FeatureUnit9FullscreenClose()");
  66. };
  67. exampleLink = function()
  68. {
  69.    this.unloadMovie();
  70.    lingo("FeatureUnit9Link(2,\"#0\")");
  71. };
  72. webPageOpen = function(strURL)
  73. {
  74.    lingo("Flsh_webPageOpen(\"" + strURL + "\")");
  75. };
  76. emailOpen = function(strEmailAddress, strSubject)
  77. {
  78.    lingo("Flsh_openEmail(\"" + strEmailAddress + "\",\"" + strSubject + "\")");
  79. };
  80. close = function()
  81. {
  82. };
  83. FeatureUnit9.utils.cursor = function(what)
  84. {
  85.    if(FeatureUnit9.runtime)
  86.    {
  87.       lingo("cursor " + String(what));
  88.    }
  89. };
  90. FeatureUnit9.objtrace = function(what)
  91. {
  92.    var _loc2_ = what;
  93.    var _loc1_ = undefined;
  94.    for(_loc1_ in _loc2_)
  95.    {
  96.    }
  97. };
  98. if(_global.Tardis == undefined)
  99. {
  100.    _global.Tardis = {};
  101.    Tardis.Settings = {};
  102.    if(_global.Feature == undefined)
  103.    {
  104.       Tardis.Settings.FeatureUnit9_ASSETS = "";
  105.    }
  106.    else
  107.    {
  108.       Tardis.Settings.FeatureUnit9_ASSETS = "movies/";
  109.    }
  110. }
  111. FeatureUnit9.timeLine = this;
  112. FeatureUnit9.path = Tardis.Settings.FeatureUnit9_ASSETS;
  113. FeatureUnit9.intervals = {};
  114. FeatureUnit9.runtime = false;
  115. FeatureUnit9.stageWidth = 770;
  116. FeatureUnit9.stageHeight = 395;
  117. FeatureUnit9.structure = [1,3];
  118. FeatureUnit9.ambientSounds = [false,true];
  119. FeatureUnit9.introSounds = [[false],[false,false,false]];
  120. FeatureUnit9.ambientFirst = [[false],[false,false]];
  121. FeatureUnit9.extraFrames = [[0],[0,0,0]];
  122. FeatureUnit9.osInfo = FeatureUnit9.utils.getOsInfo();
  123. FeatureUnit9.objTrace(FeatureUnit9.osInfo);
  124. FeatureUnit9.addInterval = function(what)
  125. {
  126.    FeatureUnit9.intervals["ID_" + what.toString()] = what;
  127. };
  128. FeatureUnit9.removeInterval = function(what)
  129. {
  130.    var _loc1_ = what;
  131.    delete FeatureUnit9.intervals["ID_" + _loc1_.toString()];
  132.    clearInterval(_loc1_);
  133. };
  134. this.onUnload = function()
  135. {
  136.    var _loc1_ = undefined;
  137.    for(_loc1_ in FeatureUnit9.intervals)
  138.    {
  139.       clearInterval(FeatureUnit9.intervals[_loc1_]);
  140.    }
  141.    FeatureUnit9.mediaManager.shutDown();
  142. };
  143. _global.FeatureUnit9.mediaManager = {};
  144. FeatureUnit9.mediaManager.ini = function()
  145. {
  146.    this.trace("starting ini");
  147.    FeatureUnit9.mediaManager.mediaPlayed = {};
  148.    FeatureUnit9.mediaManager._debugLevel = 0;
  149.    FeatureUnit9.mediaManager.introSoundPlayList = [];
  150.    FeatureUnit9.mediaManager.ambientSoundPlayList = [];
  151.    FeatureUnit9.mediaManager.effectSoundPlayList = [];
  152.    FeatureUnit9.mediaManager.currentIntroSound = null;
  153.    FeatureUnit9.mediaManager.currentAmbientSound = null;
  154.    FeatureUnit9.mediaManager.effectSound = null;
  155.    FeatureUnit9.mediaManager.introSounds = FeatureUnit9.introSounds;
  156.    FeatureUnit9.mediaManager.ambientSounds = FeatureUnit9.ambientSounds;
  157.    FeatureUnit9.mediaManager.soundFadeSpeed = 5;
  158.    FeatureUnit9.mediaManager.currentMedia = null;
  159.    FeatureUnit9.mediaManager.currentMediaInFrame = {};
  160.    FeatureUnit9.mediaManager.currentChapter = -1;
  161.    FeatureUnit9.mediaManager.depthCounter = 1;
  162. };
  163. FeatureUnit9.mediaManager.setMonitorInterval = function()
  164. {
  165.    this.trace("set monitor interval");
  166.    FeatureUnit9.mediaManager.monitorID = setInterval(FeatureUnit9.mediaManager,"monitor",1000);
  167.    FeatureUnit9.addInterval(FeatureUnit9.mediaManager.monitorID);
  168. };
  169. FeatureUnit9.mediaManager.launchMedia = function(clipFileName, selfStartingFlag)
  170. {
  171.    with(this)
  172.    {
  173.       iniSoundsVolume = clipFileName.fadeOtherSoundTo;
  174.       tClip = currentMediaInFrame[clipFileName];
  175.       var okToOpenFlag = true;
  176.       if(currentMedia.active)
  177.       {
  178.          if(currentMedia.mode == "in")
  179.          {
  180.             currentMedia.close();
  181.          }
  182.          else
  183.          {
  184.             okToOpenFlag = false;
  185.          }
  186.       }
  187.       else if(currentMedia.mode == "in")
  188.       {
  189.          currentMedia.close();
  190.          okToOpenFlag = false;
  191.       }
  192.       if(currentMedia == tClip)
  193.       {
  194.          if(currentMedia.mode == "terminating")
  195.          {
  196.             okToOpenFlag = false;
  197.          }
  198.       }
  199.       if(okToOpenFlag)
  200.       {
  201.          FeatureUnit9.utils.cursor(4);
  202.          currentMedia = tClip;
  203.          tClip.show();
  204.          if(tClip.mediaType == "VIDEO" || tClip.mediaType == "SOUND")
  205.          {
  206.             if(currentAmbientSound == undefined)
  207.             {
  208.                currentAmbientSound = new Sound();
  209.             }
  210.             if(currentIntroSound == undefined)
  211.             {
  212.                currentIntroSound = new Sound();
  213.             }
  214.             FeatureUnit9.currentSceneName = "section" + File.currentSection + "_mc";
  215.             _global.unit9MediaOpen = true;
  216.             resetVolume = _global.unit9endVolume;
  217.             _level0.backgroundSound.startSoundFade(0,1000);
  218.             FeatureUnit9.removeInterval(currentIntroSound.intervalID);
  219.             currentIntroSound.intervalID = setInterval(currentIntroSound,"fadeOut",50,tClip.fadeOtherSoundTo);
  220.             currentIntroSound.mode = "fadedOut";
  221.             FeatureUnit9.addInterval(currentIntroSound.intervalID);
  222.             FeatureUnit9.removeInterval(currentAmbientSound.intervalID);
  223.             currentAmbientSound.intervalID = setInterval(currentAmbientSound,"fadeOut",50,tClip.fadeOtherSoundTo);
  224.             currentAmbientSound.mode = "fadedOut";
  225.             FeatureUnit9.addInterval(currentAmbientSound.intervalID);
  226.          }
  227.       }
  228.    }
  229.    this.trace("ended launchMedia");
  230. };
  231. FeatureUnit9.mediaManager.monitor = function()
  232. {
  233.    with(this)
  234.    {
  235.       if(!tClip.active)
  236.       {
  237.          this.trace(5,"monitor: no currentMedia.active");
  238.          this.trace(8,"monitor: currentIntroSound.mode: " + currentIntroSound.mode);
  239.          this.trace(8,"monitor: currentAmbientSound.mode: " + currentAmbientSound.mode);
  240.          if(currentIntroSound.mode == "fadedOut")
  241.          {
  242.             fadeBackIntro();
  243.          }
  244.          if(currentAmbientSound.mode == "fadedOut")
  245.          {
  246.             fadeBackAmbient();
  247.          }
  248.       }
  249.    }
  250.    this.trace(4,"monitor: ending");
  251. };
  252. FeatureUnit9.mediaManager.fadeBackIntro = function()
  253. {
  254.    with(this)
  255.    {
  256.       FeatureUnit9.removeInterval(currentIntroSound.intervalID);
  257.       currentIntroSound.intervalID = setInterval(currentIntroSound,"fadeIn",50,100);
  258.       FeatureUnit9.addInterval(currentIntroSound.intervalID);
  259.       currentIntroSound.mode = "fadedIn";
  260.    }
  261. };
  262. FeatureUnit9.mediaManager.fadeBackAmbient = function()
  263. {
  264.    FeatureUnit9.currentSceneName = "section" + File.currentSection + "_mc";
  265.    targetVolumeFadeIn = _global.unit9endVolume;
  266.    if(targetVolumeFadeIn < 0)
  267.    {
  268.       targetVolumeFadeIn = 100;
  269.    }
  270.    _global.unit9MediaOpen = false;
  271.    _level0.backgroundSound.startSoundFade(100,1000);
  272.    with(this)
  273.    {
  274.       FeatureUnit9.removeInterval(currentAmbientSound.intervalID);
  275.       currentAmbientSound.intervalID = setInterval(currentAmbientSound,"fadeIn",50,100);
  276.       FeatureUnit9.addInterval(currentAmbientSound.intervalID);
  277.       currentAmbientSound.mode = "fadedIn";
  278.    }
  279. };
  280. FeatureUnit9.mediaManager.shutDown = function()
  281. {
  282.    this.trace(1,"starting shutdown");
  283.    with(this)
  284.    {
  285.       this.removeSounds(introSoundPlayList);
  286.       this.removeSounds(ambientSoundPlayList);
  287.       this.currentMedia.mc_media.stop();
  288.       currentMediaInFrame.shutDown();
  289.    }
  290.    this.trace(1,"ending shutdown");
  291. };
  292. FeatureUnit9.mediaManager.removeSounds = function(soundList)
  293. {
  294.    var _loc2_ = soundList;
  295.    var _loc1_ = 0;
  296.    while(_loc1_ < _loc2_.length)
  297.    {
  298.       _loc2_[0].stop();
  299.       _loc2_.shift();
  300.       _loc1_ = _loc1_ + 1;
  301.    }
  302. };
  303. FeatureUnit9.mediaManager.pruneSoundList = function(soundList, arrayLength)
  304. {
  305.    var _loc1_ = soundList;
  306.    var _loc2_ = arrayLength;
  307.    while(_loc1_.length > _loc2_)
  308.    {
  309.       _loc1_[0].kill();
  310.       _loc1_.shift();
  311.    }
  312. };
  313. FeatureUnit9.mediaManager.fadeOutFirst = function(tSound)
  314. {
  315.    var _loc1_ = tSound;
  316.    FeatureUnit9.removeInterval(_loc1_.intervalID);
  317.    _loc1_.intervalID = setInterval(_loc1_,"fadeOut",50,-1);
  318.    FeatureUnit9.addInterval(_loc1_.intervalID);
  319. };
  320. FeatureUnit9.mediaManager.launchIntroSound = function(chapterIndex, sectionIndex)
  321. {
  322.    FeatureUnit9.mediaManager.iniSoundsVolume = 100;
  323.    this.assert(!(chapterIndex instanceof Number),"launchIntroSound - chapterIndex is a number? [" + chapterIndex + "]");
  324.    with(this)
  325.    {
  326.       pruneSoundList(introSoundPlayList,1);
  327.       fadeOutFirst(currentIntroSound);
  328.       if(FeatureUnit9.introSounds[chapterIndex][sectionIndex - 1])
  329.       {
  330.          var launchFlag = true;
  331.          if(FeatureUnit9.osInfo.maxSounds < 4)
  332.          {
  333.             if(FeatureUnit9.ambientFirst[chapterIndex][sectionIndex - 1])
  334.             {
  335.                launchFlag = false;
  336.             }
  337.          }
  338.          if(launchFlag)
  339.          {
  340.             this.trace(2,"launchIntroSound - this chapter has an intro");
  341.             this.trace(2,"sectionIndex=" + sectionIndex);
  342.             currentIntroSound = makeSound(introSoundPlayList,chapterIndex,false,"intro_",sectionIndex);
  343.             this.trace(2,"currentIntroSound.name is now: " + currentIntroSound.name);
  344.             introSoundPlayList.push(currentIntroSound);
  345.          }
  346.       }
  347.    }
  348. };
  349. FeatureUnit9.mediaManager.launchEffectSound = function(tFileName, looping)
  350. {
  351.    if(FeatureUnit9.osInfo.maxSounds > 5)
  352.    {
  353.       with(this)
  354.       {
  355.          pruneSoundList(effectSoundPlayList,5);
  356.          var tSound = makeSound(effectSoundPlayList,null,false,tFileName,null,true);
  357.          effectSoundPlayList.push(tSound);
  358.       }
  359.    }
  360.    return tSound;
  361. };
  362. FeatureUnit9.mediaManager.launchAmbientSound = function(chapterIndex, sectionIndex)
  363. {
  364.    this.trace(1,"starting launchAmbientSound on chapterIndex = " + chapterIndex);
  365.    this.assert(!(chapterIndex instanceof Number),"launchAmbientSound - chapterIndex is a number? [" + chapterIndex + "]");
  366.    with(this)
  367.    {
  368.       var launchFlag = true;
  369.       if(FeatureUnit9.osInfo.maxSounds < 4)
  370.       {
  371.          if(!FeatureUnit9.ambientFirst[chapterIndex][sectionIndex - 1])
  372.          {
  373.             launchFlag = false;
  374.             pruneSoundList(ambientSoundPlayList,1);
  375.          }
  376.       }
  377.       if(ambientSounds[chapterIndex])
  378.       {
  379.          if(currentAmbientSound.chapterIndex != chapterIndex)
  380.          {
  381.             FeatureUnit9.mediaManager.fadeOutFirst(currentAmbientSound);
  382.             if(launchFlag)
  383.             {
  384.                currentAmbientSound = makeSound(ambientSound,chapterIndex,true,"ambient_",null);
  385.                currentAmbientSound.sound.setVolume(0);
  386.                ambientSoundPlayList.push(currentAmbientSound);
  387.             }
  388.          }
  389.          else if(launchFlag)
  390.          {
  391.             if(currentAmbientSound.volumeTarget == -1)
  392.             {
  393.                currentAmbientSound = makeSound(ambientSound,chapterIndex,true,"ambient_",null);
  394.                ambientSoundPlayList.push(currentAmbientSound);
  395.             }
  396.          }
  397.          else
  398.          {
  399.             FeatureUnit9.mediaManager.fadeOutFirst(currentAmbientSound);
  400.          }
  401.       }
  402.       else
  403.       {
  404.          FeatureUnit9.mediaManager.fadeOutFirst(currentAmbientSound);
  405.       }
  406.    }
  407. };
  408. FeatureUnit9.mediaManager.isAlreadyPlaying = function(soundList, chapterIndex, sectionIndex)
  409. {
  410.    this.trace(1,"starting isAlreadyPlaying on soundList [" + soundList + "] and chapterIndex = " + chapterIndex);
  411.    with(this)
  412.    {
  413.       if(!soundList.length)
  414.       {
  415.          return false;
  416.       }
  417.       if(sectionIndex != undefined)
  418.       {
  419.          return soundList[soundList.length - 1].chapterIndex == chapterIndex && soundList[soundList.length - 1].sectionIndex == sectionIndex;
  420.       }
  421.       return soundList[soundList.length - 1].chapterIndex == chapterIndex;
  422.    }
  423. };
  424. FeatureUnit9.mediaManager.makeSound = function(tArray, chapterIndex, loopingFlag, tSoundFileName, sectionIndex, event)
  425. {
  426.    if(chapterIndex != null)
  427.    {
  428.       tSoundFileName += chapterIndex;
  429.    }
  430.    if(sectionIndex != null)
  431.    {
  432.       tSoundFileName += "_" + sectionIndex;
  433.    }
  434.    this.trace(2,"starting makeSound with : [" + tArray + "], " + chapterIndex + ", " + loopingFlag + ", " + tSoundFileName);
  435.    var mm = this;
  436.    with(this)
  437.    {
  438.       createEmptyMovieClip("sound_" + String(depthCounter),depthCounter % 20);
  439.       var tSound = eval("sound_" + String(depthCounter));
  440.       tSound.ID = "sound_" + String(depthCounter);
  441.       depthCounter++;
  442.       tSound.sound = new Sound(tSound);
  443.       tSound.chapterIndex = chapterIndex;
  444.       tSound.name = tSoundFileName;
  445.       tSound.sound.loadSound(Tardis.Settings.FEATURE_ASSETS + "media/mp3/" + tSound.name + ".mp3",!event);
  446.       tSound.array = tArray;
  447.       tSound.fadeOut = function(volumeTarget)
  448.       {
  449.          var tVolume = this.sound.getVolume() - FeatureUnit9.mediaManager.soundFadeSpeed;
  450.          if(tVolume <= volumeTarget)
  451.          {
  452.             FeatureUnit9.removeInterval(this.intervalID);
  453.             if(tVolume <= 0)
  454.             {
  455.                if(volumeTarget == -1)
  456.                {
  457.                   this.sound.stop();
  458.                   this.array.shift();
  459.                   var tClip = eval(this.ID);
  460.                   tClip.removeMovieClip();
  461.                   delete this;
  462.                   this.volumeTarget = volumeTarget;
  463.                }
  464.                else
  465.                {
  466.                   this.sound.setVolume(0);
  467.                }
  468.             }
  469.             else
  470.             {
  471.                mm.trace(1,"makeSound fadeOut handler - " + this.name + " - setting sound to=" + volumeTarget);
  472.                this.sound.setVolume(volumeTarget);
  473.             }
  474.          }
  475.          else
  476.          {
  477.             this.sound.setVolume(tVolume);
  478.             mm.trace(1,"makeSound fadeOut handler - " + this.name + " -  fadingOut" + tVolume);
  479.          }
  480.       };
  481.       tSound.fadeIn = function(volumeTarget)
  482.       {
  483.          var _loc2_ = this;
  484.          var _loc1_ = _loc2_.sound.getVolume() + FeatureUnit9.mediaManager.soundFadeSpeed;
  485.          if(_loc1_ >= volumeTarget)
  486.          {
  487.             FeatureUnit9.removeInterval(_loc2_.intervalID);
  488.          }
  489.          else
  490.          {
  491.             mm.trace(1,"makeSound - fadeIn handler - volume:" + _loc1_);
  492.             _loc2_.sound.setVolume(_loc1_);
  493.          }
  494.       };
  495.       tSound.kill = function()
  496.       {
  497.          mm.trace(1,"makeSound - kill handler");
  498.          var tClip = eval(this.ID);
  499.          tClip.removeMovieClip();
  500.          FeatureUnit9.removeInterval(this.intervalID);
  501.          this.sound.stop();
  502.          delete this();
  503.          this = null;
  504.       };
  505.       this.trace(3,"makeSound: ambientFlag= " + ambientFlag);
  506.       if(loopingFlag)
  507.       {
  508.          this.trace(3,"makeSound - this is looping");
  509.          tSound.sound.onSoundComplete = function()
  510.          {
  511.             this.start();
  512.          };
  513.       }
  514.       else
  515.       {
  516.          tSound.sound.onSoundComplete = function()
  517.          {
  518.             tSound.kill();
  519.          };
  520.       }
  521.       tSound.sound.onLoad = function()
  522.       {
  523.          this.start();
  524.       };
  525.       tSound.intervalID = setInterval(monitorLoad,40,tSound);
  526.       tSound.watch(intervalID);
  527.       FeatureUnit9.addInterval(tSound.intervalID);
  528.    }
  529.    return tSound;
  530. };
  531. FeatureUnit9.mediaManager.register = function(what)
  532. {
  533.    var _loc1_ = what;
  534.    this.trace("register: " + _loc1_ + " what.filename = " + _loc1_.fileName);
  535.    this.currentMediaInFrame[_loc1_.fileName] = _loc1_;
  536. };
  537. FeatureUnit9.mediaManager.unRegister = function(what)
  538. {
  539.    var _loc1_ = what;
  540.    this.trace("unregister: " + _loc1_ + " what.filename = " + _loc1_.fileName);
  541.    delete this.currentMediaInFrame[_loc1_.fileName];
  542. };
  543. FeatureUnit9.mediaManager.trace = function()
  544. {
  545.    var _loc2_ = undefined;
  546.    var message;
  547.    if(arguments.length > 1)
  548.    {
  549.       _loc2_ = arguments[0];
  550.       message = arguments[1];
  551.    }
  552.    else
  553.    {
  554.       _loc2_ = 1;
  555.       message = arguments[0];
  556.    }
  557.    if(_loc2_ <= this._debugLevel)
  558.    {
  559.       var _loc3_ = "";
  560.       var _loc1_ = 2;
  561.       while(_loc1_ <= _loc2_)
  562.       {
  563.          _loc3_ += ">>";
  564.          _loc1_ = _loc1_ + 1;
  565.       }
  566.    }
  567. };
  568. FeatureUnit9.mediaManager.assert = function(result, mesage)
  569. {
  570.    if(!result)
  571.    {
  572.       this.trace("!!!!!!!!!!!!!!!!!!!!!!!! AARGH !!!!!!!!!!!!!!!!!! - asertion failed: " + message);
  573.       stopAllSounds();
  574.       stop();
  575.    }
  576.    else
  577.    {
  578.       this.trace(5,"assertion succeeded: " + mesage);
  579.    }
  580. };
  581. FeatureUnit9.mediaManager.ini();
  582. FeatureUnit9.mediaManager.setMonitorInterval();
  583. FeatureUnit9.playSound = function(what, looping)
  584. {
  585.    tSound = new Sound();
  586.    tSound.loadSound(Tardis.Settings.FeatureUnit9_ASSETS + "media/mp3/" + what + ".mp3");
  587.    tSound.start();
  588.    if(looping)
  589.    {
  590.       tSound.onSoundComplete = function()
  591.       {
  592.          this.start();
  593.       };
  594.    }
  595. };
  596. if(!FeatureUnit9.runtime)
  597. {
  598.    if(FeatureUnit9.debugger == undefined)
  599.    {
  600.       FeatureUnit9.debugger = {};
  601.    }
  602.    FeatureUnit9.debugger.active = true;
  603.    FeatureUnit9.debugger.doCheckFrames = true;
  604.    FeatureUnit9.debugger.checkFrames = function()
  605.    {
  606.       if(FeatureUnit9.debugger.framesChecked == undefined)
  607.       {
  608.          FeatureUnit9.debugger.framesChecked = true;
  609.          var report = "";
  610.          i = 0;
  611.          while(i < FeatureUnit9.navManager.labelList.length)
  612.          {
  613.             var _loc2_ = _currentframe;
  614.             gotoAndPlay(FeatureUnit9.navManager.labelList[i]);
  615.             var _loc1_ = _currentframe;
  616.             if(_loc2_ == _loc1_)
  617.             {
  618.             }
  619.             i++;
  620.          }
  621.       }
  622.    };
  623.    FeatureUnit9.debugger.load = function()
  624.    {
  625.       var _loc1_ = this;
  626.       createEmptyMovieClip("debugger",10000);
  627.       debugger._x = 800;
  628.       debugger.loadMovie("debugger.swf");
  629.       _loc1_.dblmID = setInterval(_loc1_,debugLoadMonitor,50);
  630.       FeatureUnit9.addInterval(_loc1_.dblmID);
  631.    };
  632.    FeatureUnit9.debugger.debugLoadMonitor = function()
  633.    {
  634.       if(debugger.getBytesLoaded() == debugger.getBytesTotal())
  635.       {
  636.          debugger.onPress = function()
  637.          {
  638.          };
  639.          FeatureUnit9.removeInterval(dblmID);
  640.       }
  641.    };
  642.    if(FeatureUnit9.debugger.active)
  643.    {
  644.       FeatureUnit9.debugger.load();
  645.    }
  646.    if(FeatureUnit9.debugger.doCheckFrames)
  647.    {
  648.       FeatureUnit9.debugger.checkFrames();
  649.    }
  650.    FeatureUnit9.debugger.frameNum = 1;
  651.    FeatureUnit9.debugger.getCurrentFrame = function()
  652.    {
  653.       if(FeatureUnit9.debugger.frameNum != _currentframe)
  654.       {
  655.          FeatureUnit9.debugger.frameNum = _currentframe;
  656.       }
  657.    };
  658.    setInterval(FeatureUnit9.debugger,"getCurrentFrame",20);
  659. }
  660. _global.unit9OpenSpoke = function(fileName, mediaTitle, inTransition, outTransition, duration, playerType, spokeNumber)
  661. {
  662.    if(File.currentSection != undefined)
  663.    {
  664.       spokeTargetPrefix_mc = "_level0.section" + File.currentSection + "_mc.spokePlayer";
  665.    }
  666.    else
  667.    {
  668.       spokeTargetPrefix_mc = "_root.spokePlayer";
  669.    }
  670.    spokeIndex = 1;
  671.    while(spokeIndex < 20)
  672.    {
  673.       spokeTarget_mc = spokeTargetPrefix_mc + spokeIndex + "_mc";
  674.       target_mc = eval(spokeTarget_mc);
  675.       target_mc.gotoAndPlay("closeFrame");
  676.       spokeIndex++;
  677.    }
  678.    if(File.currentSection != undefined)
  679.    {
  680.       spokeTarget_mc = "_level0.section" + File.currentSection + "_mc.spokePlayer" + spokeNumber + "_mc";
  681.    }
  682.    else
  683.    {
  684.       spokeTarget_mc = "_root.spokePlayer" + spokeNumber + "_mc";
  685.    }
  686.    target_mc = eval(spokeTarget_mc);
  687.    target_mc.fileName = fileName;
  688.    target_mc.mediaTitle = mediaTitle;
  689.    target_mc.inTransition = inTransition;
  690.    target_mc.outTransition = outTransition;
  691.    target_mc.duration = duration;
  692.    target_mc.playerType = playerType;
  693.    switch(playerType)
  694.    {
  695.       case 2:
  696.          target_mc.MCYposition = 40;
  697.          break;
  698.       case 4:
  699.          target_mc.MCYposition = 0;
  700.          break;
  701.       default:
  702.          target_mc.MCYposition = 0;
  703.    }
  704.    target_mc.gotoAndPlay(2);
  705. };
  706. _global.unit9spokeSkip = 500;
  707. if(!_global.sceneInit)
  708. {
  709.    _global.sceneInit = function()
  710.    {
  711.    };
  712. }
  713.